package light

import (
	"learn-opengl/opengl/shader"

	"github.com/go-gl/mathgl/mgl32"
)

func SetUpDirLight(shader *shader.Shader) {
	//平行光源
	shader.SetUnifor3f("sun.direction",mgl32.Vec3{0.0,-0.4,-0.3})
	shader.SetUnifor3f("sun.ambient",mgl32.Vec3{0.4,0.4,0.4})
	shader.SetUnifor3f("sun.diffuse",mgl32.Vec3{.7,.7,.7})
	shader.SetUnifor3f("sun.specular",mgl32.Vec3{.4,.4,.4})
}